import service from "@/utils/request.js"

//用户名登录
export function userLoginApi(data) {
    return service({
        url: "/userlogin",
        method: "post",
        data
    })
}

//用户列表
export function userListApi(params) {
    return service({
        url: `/userlist`,
        method: "get",
        params
    })
}


//添加用户名
export function userAddApi(data) {
    return service({
        url: "/adduser",
        method: "post",
        data
    })
}



//修改用户
export function userEditApi(data) {
    return service({
        url: "/edituser",
        method: "put",
        data
    })
}

// 删除用户
export function userDeleApi(data) {
    return service({
        url: "/deleteuser",
        method: "delete",
        data
    })
}